* {
    margin: 0;
    padding: 0;
}

html, body {
    width: 100%;
    height: 100%;
}

body {
    background-image: linear-gradient(to left, rgba(255, 0, 149, 0.2), rgba(0, 247, 255, 0.2)), url(../img/bg.jpeg);
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-size: cover;
}

#box {
    /* background-color: red; */
    width: 1200px;
    height: 100px;
    margin: 0 auto;
    padding-top: 5%;
}

.meBox {
    float: left;
    width: 20rem;
    height: 31rem;
    background-color: white;
    margin-top: 70px;
    border-radius: 2%;
    transition: all 0.3s;
    text-align: center;
}

.meBox:hover {
    width: 21rem;
    height: 32rem;
    margin: 95px 0 0 -5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

.headPhoto {
    width: 8rem;
    height: 8rem;
    background: url(../img/qc.jpg) no-repeat;
    background-size: cover;
    border-radius: 50%;
    position: relative;
    top: -15%;
    left: 50%;
    margin-left: -4rem;
    transition: all 0.3s;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.meBox:hover .headPhoto {
    width: 9rem;
    height: 9rem;
    margin: -0.5rem 0 0 -4.5rem;
    transform: rotate(360deg);
}

.headPhoto:hover {
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.meBox-title {
    width: auto;
    margin: 0 auto;
}

@keyframes typing {
    from {
        width: 0;
    }
}

@keyframes blink-caret {
    50% {
        border-color: transparent;
    }
}

.meBox-title p {
    font-size: 1.2rem;
    /*border-right: .1em solid;*/
    width: 12ch;
    /*white-space: nowrap;*/
    overflow: hidden;
    /*animation: typing 2s steps(20, end), blink-caret .3s step-end infinite alternate;*/
    margin: -30px 0 0 90px;
    transition: all 0.3s;
}

.meBox:hover .meBox-title p {
    font-size: 1.3rem;
}

.meBox-title .fg {
    width: 80%;
    height: 2px;
    background-image: linear-gradient(to left, #3498db, #2980b9);
    margin: 5% 0 0 10%;
}

.meBox-text {
    width: 80%;
    height: 54%;
    overflow: hidden;
    text-align: center;
    color: rgb(70, 70, 70);
    /*animation-name: meBox-text;*/
    /*animation-duration: 2s;*/
    /*animation-fill-mode: forwards;*/
    margin: 5% 0 0 10%;
    transition: all 0.3s;
}

.meBox-text p {
    margin-top: 5px;
}

.meBox:hover .meBox-text {
    font-size: 1.05rem;
}

@keyframes meBox-text {
    0% {
        transform: translateY(50px);
        color: white;
    }

    100% {
        transform: translateY(0);
        color: rgb(70, 70, 70);
    }
}

.meBox-Button {
    width: 100%;
}

.meBox-Button a {
    display: inline-block;
    float: left;
    width: 158px;
    height: 50px;
    margin-top: 13px;
    line-height: 50px;
    text-decoration: none;
    color: gray;
    transition: all 0.3s;
}

.meBox-Button a:hover {
    color: rgb(0, 132, 255);
    font-size: 1.2rem;
}

.meBox:hover .meBox-Button a {
    width: 165px;
    margin-top: 10px;
}

#cmdBox {
    width: 710px;
    height: 550px;
    float: right;
    margin-top: 6%;
    /* background-color: green; */
}

.cmd {
    width: 850px;
    height: 500px;
    border-radius: 10px 10px 5px 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    font-size: 14px;
    color: rgb(88, 89, 92);
    position: relative;
    top: 0;
    left: 0;

    background-image: url(../img/cha.jpeg);
    background-repeat: no-repeat;
    background-size: cover;
    display: block;
}

.cmd:hover {
    height: 510px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
    margin: -5px 0 0 -5px;
}

.cmd .click {
    margin-left: 10px;
    float: left;
}

.cha1{
    background-image: url(../img/cha.jpeg);
}
.cha2{
    background-image: url(../img/cha2.jpeg);
}

.cha3{
    background-image: url(../img/cha3.jpeg);
}

.cmd2 {
    width: 850px;
    height: 13rem;
    border-radius: 10px 10px 5px 5px;
    overflow: hidden;
    background-color: rgba(255, 255, 255, 0.9);
    transition: all 0.3s;
    font-size: 14px;
    color: rgb(88, 89, 92);
    position: relative;
    top: 2rem;
    left: 0;


    background-repeat: no-repeat;
    background-size: cover;
    display: none;
}

.cmd2:hover {
    height: 13.5rem;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4);
}

/*.cmd2 .click {*/
    /*margin-left: 10px;*/
    /*float: left;*/
/*}*/

#footer {
    width: 100%;
    color: white;
    float: left;
    text-align: center;
    position: fixed;
    bottom: 0;
    margin-bottom: 30px;
    /* background-color: blue; */
}

#footer a {
    text-decoration: none;
    color: white;
}

#footer a:hover {
    color: rgb(0, 81, 255);
}

/* 自适应 */
@media screen and (max-width: 1250px) {
    #box {
        width: 100%;
    }

    .meBox {
        margin-left: 3%;
    }

    .meBox:hover {
        width: 21rem;
        height: 26rem;
        margin: 95px 0 0 2.5%;
    }

    #cmdBox {
        margin-right: 3%;
    }
}

@media screen and (max-width: 1120px) {
    .meBox {
        float: none;
        margin: 100px auto 10px;
    }

    .meBox:hover {
        width: 20rem;
        height: 25rem;
        margin: 105px auto 100px;
    }

    .meBox:hover .meBox-Button a {
        width: 158px;
        height: 50px;
        margin-top: 13px;
    }

    .meBox:hover .meBox-title p {
        font-size: 1.2rem;
    }

    .meBox:hover .headPhoto {
        width: 8rem;
        height: 8rem;
        margin: -0.5rem 0 0 -4rem;
        transform: rotate(360deg);
    }

    #cmdBox {
        float: none;
        margin: 0 auto 100px;
    }
}

@media screen and (max-width: 768px) {
    .meBox {
        width: 300px;
    }

    .meBox:hover {
        width: 300px;
        height: 30rem;
        margin: 100px auto 100px;
    }

    .meBox-Button a:hover {
        color: rgb(0, 132, 255);
    }

    .meBox:hover .meBox-Button a {
        width: 150px;
        margin-top: 13px;
    }

    .meBox:hover .meBox-title p {
        font-size: 1.2rem;
    }

    .meBox:hover .headPhoto {
        width: 8rem;
        height: 8rem;
        margin: -0.5rem 0 0 -4rem;
        transform: rotate(360deg);
    }

    .meBox:hover .meBox-text {
        font-size: 1rem;
    }

    .meBox-Button a {
        width: 150px;
    }

    #cmdBox {
        width: 100%;
        height: 850px;
        overflow: hidden;
    }

    .cmd {
        width: 90%;
        height: 13rem;
        margin: 0 auto;
        display: none;
    }

    .cmd:hover {
        height: 13rem;
    }

    .cmd2 {
        width: 90%;
        margin: 0 auto;
        display: block;
    }

    #cmdBox p{
        height: 2rem;
    }
}